//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __CHANNEL_IO_H__
#define __CHANNEL_IO_H__

#ifdef _win32
#include <stdio.h>
#include <string.h>
#else
#include <ddk.h>
#endif

typedef int (*ReadInputStream)(void *, int, int*);
typedef int (*WriteOutputStream)(void *, int, int*);

#define CHANNEL_OUT_OF_MEMORY -1
#define CHANNEL_IO_ERROR -2
#define CHANNEL_CRC_ERROR -3
#define CHANNEL_HEADER_ERROR -4
#define CHANNEL_OK 0

#endif //__CHANNEL_IO_H__
